package com.ranqianhuii.ojbackendserviceclient.service;


import com.ranqianhui.ojbackendmodel.model.entity.QuestionSubmit;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * 判题服务
 */
//oj-backend-judge-service
@FeignClient(name = "oj-backend-judge-service",path = "/api/judge/inner")
public interface JudgeClient {

    /***
     * 判题
     * @param questionSubmitId
     * @return
     */
    @PostMapping("/do")
    QuestionSubmit doJudge(Long questionSubmitId);
}
